<?php if(strstr(detect_browser(),'ie9') || strstr(detect_browser(),'ie1') || strstr(detect_browser(),'ie8')){?>
<div id="sidebar-right-old">
		<?php $tn_zen_featured_vid1 = get_option('tn_zen_featured_vid1'); $tn_zen_featured_vid2 = get_option('tn_zen_featured_vid2'); ?>
		<?php if(($tn_zen_featured_vid1 == '') && ($tn_zen_featured_vid2 == '')){ ?>
		<?php
	} else {
		?>
		<div id="ads-slot">

		<h2 class="line-ie">Top5.</h2>
		<span class="liner"></span>
		<?php get_sidebar(); ?>

<h2 class="line-ie">Sponsors.</h2>
		<span class="liner"></span>
		<!--[if IE]>
	<br/>
<![endif]-->
		<br> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a>
		<p class="adshere">
			<a href="#putyourcontactemail">ลงโฆษณา</a>
		</p>
	</div>


	<div id="video-slot">
		<h2 class="line-ie">Videos.</h2>
		<span class="liner"></span> <br>
		<p><?php $tn_zen_featured_vid1 = stripcslashes($tn_zen_featured_vid1); echo $tn_zen_featured_vid1; ?> </p>
		<p><?php $tn_zen_featured_vid2 = stripcslashes($tn_zen_featured_vid2); echo $tn_zen_featured_vid2; ?> </p>
	</div>

<?php } ?>

<?php
	
	if (! function_exists ( 'dynamic_sidebar' ) || ! dynamic_sidebar ( 2 )) :
		?>


<?php if(function_exists("akpc_most_popular")) : ?>
<h2 class="line-ie"><?php _e('Most Popular'); ?></h2>
	<span class="liner"></span>
	<ul class="list">
		<!--[if IE]>
	<br/>
<![endif]-->
<?php akpc_most_popular(); ?>
</ul>
<?php endif; ?>


<h2 class="line-ie"><?php _e('Popular Tags'); ?>.</h2>
	<span class="liner"></span>
	<!--[if IE]>
	<br/>
<![endif]-->
	<ul class="nolist">
		<li>
<?php if(function_exists("UTW_ShowTagsForCurrentPost")){  ?>
<?php UTW_ShowWeightedTagSetAlphabetical("sizedtagcloud","","70"); ?>
<?php } elseif(function_exists("wp_tag_cloud")) { ?>
<?php wp_tag_cloud('smallest=10&largest=20&'); ?>
<?php } else { ?>
you have to install Ultimate Tag Warrior if using later version of wordpress
<?php } ?>
</li>
	</ul>

<?php endif; ?>


</div>
<?php }else if(strstr(detect_browser(),'ie7')){?>
<div id="sidebar-right-old">

<?php $tn_zen_featured_vid1 = get_option('tn_zen_featured_vid1'); $tn_zen_featured_vid2 = get_option('tn_zen_featured_vid2'); ?>

<?php if(($tn_zen_featured_vid1 == '') && ($tn_zen_featured_vid2 == '')){ ?>

<?php
	} 

	else {
		?>


<div id="ads-slot">

		<h2 class="line-ie7">Top5.</h2>
		<span class="liner"></span>
		<?php get_sidebar(); ?>

<h2 class="line">Sponsors.</h2>
		<span class="liner"></span>
		<!--[if IE]>
	<br/>
<![endif]-->
		<a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a>

		<p class="adshere">
			<a href="#putyourcontactemail">ลงโฆษณา</a>
		</p>
	</div>


	<div id="video-slot">
		<h2 class="line">Videos.</h2>
		<span class="liner"></span>
		<!--[if IE]>
	<br/>
<![endif]-->
		<p><?php $tn_zen_featured_vid1 = stripcslashes($tn_zen_featured_vid1); echo $tn_zen_featured_vid1; ?> </p>
		<p><?php $tn_zen_featured_vid2 = stripcslashes($tn_zen_featured_vid2); echo $tn_zen_featured_vid2; ?> </p>
	</div>

<?php } ?>

<?php
	
	if (! function_exists ( 'dynamic_sidebar' ) || ! dynamic_sidebar ( 2 )) :
		?>


<?php if(function_exists("akpc_most_popular")) : ?>
<h2 class="line-ie"><?php _e('Most Popular'); ?></h2>
	<span class="liner"></span>
	<ul class="list">
		<!--[if IE]>
	<br/>
<![endif]-->
<?php akpc_most_popular(); ?>
</ul>
<?php endif; ?>


<h2 class="line"><?php _e('Popular Tags'); ?>.</h2>
	<span class="liner"></span>
	<!--[if IE]>
	<br/>
<![endif]-->
	<ul class="nolist">
		<li>
<?php if(function_exists("UTW_ShowTagsForCurrentPost")){  ?>
<?php UTW_ShowWeightedTagSetAlphabetical("sizedtagcloud","","70"); ?>
<?php } elseif(function_exists("wp_tag_cloud")) { ?>
<?php wp_tag_cloud('smallest=10&largest=20&'); ?>
<?php } else { ?>
you have to install Ultimate Tag Warrior if using later version of wordpress
<?php } ?>
</li>
	</ul>
<?php endif; ?>
</div>

<?php }else{?>
<div id="sidebar-right-old">

<?php $tn_zen_featured_vid1 = get_option('tn_zen_featured_vid1'); $tn_zen_featured_vid2 = get_option('tn_zen_featured_vid2'); ?>

<?php if(($tn_zen_featured_vid1 == '') && ($tn_zen_featured_vid2 == '')){ ?>

<?php
	} 

	else {
		?>

<div id="ads-slot">

		<h2 class="line">Top5.</h2>
		<span class="liner"></span>
		<?php get_sidebar(); ?>

<h2 class="line">Sponsors.</h2>
		<span class="liner"></span>
		<!--[if IE]>
	<br/>
<![endif]-->
		<a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a> <a href="#"><img
			src="<?php bloginfo('template_directory'); ?>/images/banner/sample.jpg"
			alt="sample" /></a>

		<p class="adshere">
			<a href="#putyourcontactemail">ลงโฆษณา</a>
		</p>
	</div>

	<div id="video-slot">
		<h2 class="line">Videos.</h2>
		<span class="liner"></span>
		<!--[if IE]>
	<br/>
<![endif]-->
		<p><?php $tn_zen_featured_vid1 = stripcslashes($tn_zen_featured_vid1); echo $tn_zen_featured_vid1; ?> </p>
		<p><?php $tn_zen_featured_vid2 = stripcslashes($tn_zen_featured_vid2); echo $tn_zen_featured_vid2; ?> </p>
	</div>

<?php } ?>

<?php
	
	if (! function_exists ( 'dynamic_sidebar' ) || ! dynamic_sidebar ( 2 )) :
		?>

<?php if(function_exists("akpc_most_popular")) : ?>
<h2 class="line-ie"><?php _e('Most Popular'); ?></h2>
	<span class="liner"></span>
	<ul class="list">
		<!--[if IE]>
	<br/>
<![endif]-->
<?php akpc_most_popular(); ?>
</ul>
<?php endif; ?>


<h2 class="line"><?php _e('Popular Tags'); ?>.</h2>
	<span class="liner"></span>
	<!--[if IE]>
	<br/>
<![endif]-->
	<ul class="nolist">
		<li>
<?php if(function_exists("UTW_ShowTagsForCurrentPost")){  ?>
<?php UTW_ShowWeightedTagSetAlphabetical("sizedtagcloud","","70"); ?>
<?php } elseif(function_exists("wp_tag_cloud")) { ?>
<?php wp_tag_cloud('smallest=10&largest=20&'); ?>
<?php } else { ?>
you have to install Ultimate Tag Warrior if using later version of wordpress
<?php } ?>
</li>
	</ul>
<?php endif; ?>
</div>
<?php };?>